<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			let name = "29期";
			console.log(name + "|");

			function fn() {
				return " 博为峰";
			}

			let s = '学掌门'; //""

			s = new String("学掌门");

			let s1 = `${fn()} 学掌门 ${name}`; //模板字符串
			// console.log(s1);

			let table = "<table>" +
			                "<tr>" +
							  "<td>博为峰</td>" +
							  "<td>学掌门</td>" +
							"</tr>" +
						"</table>";
						
			table = `<table>
			           <tr>
					      <td>${name}</td>
					   </tr>
			         </table>`;
			// console.log(table);
			
			/*
			   反引号 ``
			   1.插入变量和表达式
			   2.调用函数
			   3.换行和空格都会保留
			*/
		</script>
	</body>
</html>
